<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <!-- load 依赖的库 -->
    <script src="../libs/system.js"></script>
    <script>
        System.import('../libs/cc.js');
    </script>

    <!-- load 一些工具函数 -->
    <script src="../src/utils/gltfParser.js"></script>
    <script src="../src/utils/ajax.js"></script>
    <script src="../src/utils/globalCache.js"></script>

    <!-- load需要的 -->
    <script src="../src/debugUtils.js"></script>
    <!--<script src="../src/graphics.js"></script>-->
    <!--<script src="../src/v1/camera.js"></script>-->
    <!--<script src="../src/v1/rendererV1.js"></script>-->
    <!--<script src="../src/v1/mesh.js"></script>-->

    <script src="../src/v1/g2d.js"></script>
    <script src="../src/v1/template_2d.js"></script>


    <script>

        let g2d;
        app.init = function () {
            g2d = new Graphics2d(__imageData);

            let color1 = cc.Color.RED;
            let color2 = cc.color(255,255,255,0);

            let value = cc.math.lerp(color1._val,color2._val,0.5);


            let color4 = cc.color();
            color4._val = value;
            console.log("r:",color4.r);
            console.log("g:",color4.g);
            console.log("b:",color4.b);
            console.log("a:",color4.a);


            //
            console.log('------------------------------------');
            let color5 = cc.color();
            cc.Color.lerp(color5,color1,color2,0.5);
            console.log("r:",color5.r);
            console.log("g:",color5.g);
            console.log("b:",color5.b);
            console.log("a:",color5.a);
        };
        app.render = function () {
            g2d.clear();



        }
    </script>
</head>
<body>

</body>
</html>
